package com.cs.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("user_info")
public class UserInfo {

    @TableId(value = "user_id",type = IdType.AUTO)
    private long id;

    @TableField("user_username")
    private String username;

    @TableField("user_password")
    private String password;

    @TableField("user_email")
    private String email;

    @TableField("role_name")
    private String role;

    @TableField("perm_name")
    private String perm;

    @TableField("perm_des")
    private String permDes;

    @TableField("user_creat_time")
    private Date creatTime;
}
